package com.huixiaodian.baselibrary.interceptor;

import android.content.Context;

import androidx.annotation.NonNull;

import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;

public class AddCookieInterceptor implements Interceptor {

    private Context context;

    public AddCookieInterceptor(Context context){
        super();
        this.context = context;
    }

    @Override
    public Response intercept(@NonNull Chain chain) throws IOException {
        Request.Builder build = chain.request().newBuilder();
        build.addHeader("Cookie", "");
        return chain.proceed(build.build());
    }
}
